#ifndef PLUGININTERFACES_H
#define PLUGININTERFACES_H
#include <qapplication.h>

/// 插件name
#ifdef Q_OS_MAC
#define MAINWINDOW_DLL              "libmainwindow.1.dylib"
#define HELLOWORD_DLL               "libhelloword.1.dylib"
#else
#define MAINWINDOW_DLL              "mainwindow.dll"
#define HELLOWORD_DLL               "helloword.dll"
#endif

/// 插件运行过程的通信标识
#define TOPIC_MAINWINDOW            "TOPIC_MAINWINDOW"
#define TOPIC_HELLOWORD             "TOPIC_HELLOWORD"

//消息体相关定义
#define PROPERTY_EVENT                      "EVENT"       //消息头
#define PROPERTY_DATA                       "DATA"        //数据
#define PROPERTY_EXTENTION                  "EXTENTION"   //扩展数据

// 主模块的事件定义
#define MAINWINDOW_LOAD                             "mainwindow_load"       /// 主模块加载完毕
#define MAINWINDOW_STRING                           "mainwindow_string"     /// 发送字符串

// helloword模块的事件定义
#define HELLOWORD_STRING                           "helloword_string"       /// 发送字符串
#endif
